import request from '@/utils/request'
let baseUrl = process.env.NODE_ENV === 'production' ? 'api/core' : '/core'
export const getAcctJournalDetail = (data?: any) =>
  request({
    baseURL: baseUrl,
    url: '/accounting/acct-journal-detail/query',
    method: 'post',
    data
  })
// 会计总账
export const getAcctJournalDetailSubTotal = (data?: any) =>
  request({
    baseURL: baseUrl,
    url: '/accounting/acct-journal-detail/subtotal',
    method: 'post',
    data
  })
// 交易类型列表
export const getAcctTransList = (data?: any) =>
  request({
    baseURL: baseUrl,
    url: '/accounting/acct-trans/list',
    method: 'post',
    data
  })
// 费用类型列表
export const getAcctFeeList = (data?: any) =>
  request({
    baseURL: baseUrl,
    url: '/accounting/acct-fee/list',
    method: 'post',
    data
  })
// 科目
export const getAcctSubjectQuery = (data?: any) =>
  request({
    baseURL: baseUrl,
    url: '/accounting/subject/query',
    method: 'post',
    data
  })
// 分录配置列表
export const getAcctTransEntryList = (data?: any) =>
  request({
    baseURL: baseUrl,
    url: '/accounting/acct-trans-entry/query',
    method: 'post',
    data
  })
// 新增分录配置
export const createAcctTransEntry = (data?: any) =>
  request({
    baseURL: baseUrl,
    url: '/accounting/acct-trans-entry/add',
    method: 'post',
    data
  })
// 更新分录配置
export const updateAcctTransEntry = (data?: any) =>
  request({
    baseURL: baseUrl,
    url: '/accounting/acct-trans-entry/update',
    method: 'post',
    data
  })
